<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.text.xml.PullParser</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.text.xml.PullParser");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791">tango.text.xml.PullParser</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Initial release: February 2008<br><br>
<b>Authors:</b><br>
Aaron, Kris<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>enum <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L29">XmlNodeType</a></span>
<script>explorer.outline.addDecl('XmlNodeType');</script>; [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>enum <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L36">XmlTokenType</a></span>
<script>explorer.outline.addDecl('XmlTokenType');</script>; [public]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br>
</dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>class <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L64">PullParser</a></span>
<script>explorer.outline.addDecl('PullParser');</script>(Ch = char);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Token based XML Parser.  Templated to operate with char[], wchar[], 
        and dchar[] based Xml strings. </font><br><br>
<font color="black">The parser is constructed with some tradeoffs relating to document
        integrity. It is generally optimized for well-formed documents, and
        currently may read past a document-end for those that are not well
        formed. There are various compilation options to enable checks and
        balances, depending on how things should be handled. We'll settle
        on a common configuration over the next few weeks, but for now all
        settings are somewhat experimental. Partly because making some tiny 
        unrelated change to the code can cause notable throughput changes, 
        and we need to track that down.<br><br>        We're not yet clear why these swings are so pronounced &#40;for changes
        outside the code path&#41; but they seem to be related to the alignment
        of codegen. It could be a cache-line issue, or something else. We'll
        figure it out, yet it's interesting that some hardware buttons are 
        clearly being pushed<br><br></font><br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li><span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L80">this</a></span>
<script>explorer.outline.addDecl('this');</script>(Ch[] <span class="funcparam">content</span> = null);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L89">next</a></span>
<script>explorer.outline.addDecl('next');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L124">doMain</a></span>
<script>explorer.outline.addDecl('doMain');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L273">doAttributeName</a></span>
<script>explorer.outline.addDecl('doAttributeName');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L343">doEndEmptyElement</a></span>
<script>explorer.outline.addDecl('doEndEmptyElement');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L358">doComment</a></span>
<script>explorer.outline.addDecl('doComment');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L384">doCData</a></span>
<script>explorer.outline.addDecl('doCData');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L410">doPI</a></span>
<script>explorer.outline.addDecl('doPI');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L436">doDoctype</a></span>
<script>explorer.outline.addDecl('doDoctype');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L470">doUnexpectedEOF</a></span>
<script>explorer.outline.addDecl('doUnexpectedEOF');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L479">doUnexpected</a></span>
<script>explorer.outline.addDecl('doUnexpected');</script>(char[] <span class="funcparam">msg</span> = null); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L488">doEndOfStream</a></span>
<script>explorer.outline.addDecl('doEndOfStream');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>XmlTokenType <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L497">error</a></span>
<script>explorer.outline.addDecl('error');</script>(char[] <span class="funcparam">msg</span>); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>Ch[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L508">value</a></span>
<script>explorer.outline.addDecl('value');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>Ch[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L517">name</a></span>
<script>explorer.outline.addDecl('name');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L528">error</a></span>
<script>explorer.outline.addDecl('error');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>bool <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L537">reset</a></span>
<script>explorer.outline.addDecl('reset');</script>(); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L548">reset</a></span>
<script>explorer.outline.addDecl('reset');</script>(Ch[] <span class="funcparam">newText</span>); [final]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L558">reset_</a></span>
<script>explorer.outline.addDecl('reset_');</script>(); [private]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br></dd></dl></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>struct <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/text/xml/PullParser.d?rev=3791#L602">XmlIterator</a></span>
<script>explorer.outline.addDecl('XmlIterator');</script>(Ch);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black"></font><br><br>
</dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (C) 2007 Aaron Craelius and Kris Bell  
                   All rights reserved. :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:36 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>